import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import SupplierManager from "@/views/SupplierManager"
import Test from "@/views/Test"
import RoleManage from '../views/RoleManage.vue'


Vue.use(Router)

export default new Router({
  routes: [
    // 一级路由
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/supplierManager',
      name: 'SupplierManager',
      component: SupplierManager
    },
    {
      path: '/test',
      name: 'Test',
      component: Test
    }, {
      path: '/roleManage',
      name: 'RoleManage',
      component: RoleManage
    }
  ]
})
